
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Instance Properties - vue.js</title>
        <meta charset="utf-8">
        <meta name="description" content="Vue.js - Intuitive, Fast and Composable MVVM for building interactive interfaces.">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600|Lato|Inconsolata' rel='stylesheet' type='text/css'>
        <link rel="icon" href="/images/logo.png" type="image/x-icon">
        <script>
            window.PAGE_TYPE = "api"
        </script>
        <link rel="stylesheet" href="/css/page.css" type="text/css">
        <script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-46852172-1', 'vuejs.org');
  ga('send', 'pageview');
</script>
        <script src="/js/vue.min.js"></script><script src="https://cdn.jsdelivr.net/gh/shentao/vuejs-outdated-docs-modal@v1.3/prompt.min.js"></script>
    </head>
    <body>
        <div id="mobile-bar">
            <a class="menu-button"></a>
            <a class="logo" href="/"></a>
        </div>
        
            <div id="header">
    <a id="logo" href="/">
        <img src="/images/logo.png">
        <span>Vue.js</span>
    </a>
    <ul id="nav">
        <li><a href="/guide/" class="nav-link">Guide</a></li>
<li><a href="/api/" class="nav-link current">API Reference</a></li>
<li><a href="/examples/" class="nav-link">Examples</a></li>
<li><a href="/blog/" class="nav-link">Blog</a></li>
<li><a href="https://github.com/yyx990803/vue" target="_blank" class="nav-link">GitHub</a></li>
    </ul>
</div>
            <div id="main">
                
                    
    <div class="sidebar">
    <ul class="main-menu">
        <li><a href="/guide/" class="nav-link">Guide</a></li>
<li><a href="/api/" class="nav-link current">API Reference</a></li>
<li><a href="/examples/" class="nav-link">Examples</a></li>
<li><a href="/blog/" class="nav-link">Blog</a></li>
<li><a href="https://github.com/yyx990803/vue" target="_blank" class="nav-link">GitHub</a></li>
    </ul>
    <div class="list">
        <h2>Api</h2>
        <ul class="menu-root">
            
                <li><a href="/api/index.html" class="sidebar-link">Overview</a></li>
            
                <li><a href="/api/options.html" class="sidebar-link">Component Options</a></li>
            
                <li><a href="/api/instance-properties.html" class="sidebar-link current">Instance Properties</a></li>
            
                <li><a href="/api/instance-methods.html" class="sidebar-link">Instance Methods</a></li>
            
                <li><a href="/api/global-api.html" class="sidebar-link">Global API</a></li>
            
                <li><a href="/api/directives.html" class="sidebar-link">Directives</a></li>
            
                <li><a href="/api/filters.html" class="sidebar-link">Filters</a></li>
            
        </ul>
    </div>
</div>


<div class="content api with-sidebar">
    <h1>Instance Properties</h1>
    <div id="ad">
        <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs" id="_carbonads_js"></script>
    </div>
    <h3 id="vm-$el">vm.$el</h3><ul>
<li><strong>Type:</strong> <code>HTMLElement</code></li>
<li><strong>Read only</strong></li>
</ul>
<p>The DOM element that the Vue instance is managing.</p>
<h3 id="vm-$data">vm.$data</h3><ul>
<li><strong>Type:</strong> <code>Object</code></li>
</ul>
<p>The data object that the Vue instance is observing. You can swap it with a new object. The Vue instance proxies access to the properties on its data object.</p>
<h3 id="vm-$options">vm.$options</h3><ul>
<li><strong>Type:</strong> <code>Object</code></li>
</ul>
<p>The instantiation options used for the current Vue instance. This is useful when you want to include custom properties in the options:</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">new</span> Vue(&#123;</span><br><span class="line">  customOption: <span class="string">'foo'</span>,</span><br><span class="line">  created: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</span><br><span class="line">    <span class="built_in">console</span>.log(<span class="keyword">this</span>.$options.customOption) <span class="comment">// -&gt; 'foo'</span></span><br><span class="line">  &#125;</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure>
<h3 id="vm-$parent">vm.$parent</h3><ul>
<li><strong>Type:</strong> <code>Vue</code></li>
<li><strong>Read only</strong></li>
</ul>
<p>The parent instance, if the current instance has one.</p>
<h3 id="vm-$root">vm.$root</h3><ul>
<li><strong>Type:</strong> <code>Vue</code></li>
<li><strong>Read only</strong></li>
</ul>
<p>The root Vue instance of the current component tree. If the current instance has no parents this value will be itself.</p>
<h3 id="vm-$">vm.$</h3><ul>
<li><strong>Type:</strong> <code>Object</code></li>
<li><strong>Read only</strong></li>
</ul>
<p>An object that holds child components that have <code>v-ref</code> registered. For more details see <a href="/api/directives.html#v-ref">v-ref</a>.</p>
<h3 id="vm-$$">vm.$$</h3><ul>
<li><strong>Type:</strong> <code>Object</code></li>
<li><strong>Read only</strong></li>
</ul>
<p>An object that holds DOM elements that have <code>v-el</code> registered. For more details see <a href="/api/directives.html#v-el">v-el</a>.</p>
<h3 id="Meta_Properties">Meta Properties</h3><p>Instances created by <code>v-repeat</code> will also have some meta properties, e.g. <code>vm.$index</code>, <code>vm.$key</code> and <code>vm.$value</code>. For more details, see <a href="/guide/list.html">the guide on using <code>v-repeat</code></a>.</p>

    <div class="footer">Caught a mistake or want to contribute to the documentation? <a href="https://github.com/vuejs/vuejs.org" target="_blank">Fork this site on Github</a>!</div>
</div>
                
            </div>
            <script src="/js/smooth-scroll.min.js"></script>
            <script src="/js/common.js"></script>
        
    </body>
</html>